package com.chinasoft.class1.group1;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class huangyuheng implements TrueWord {
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public huangyuheng(){
        wordList.add("下课");
        wordList.add("吃饭");
        wordList.add("睡觉");
    }

    @Override
    public String getWord() {
        int index = random.nextInt(wordList.size());
        return wordList.get( index);
    }

    @Override
    public String getName() {
        return "黄宇恒";
    }
}
